package com.example.spring_boot_service.mapper;

import com.example.spring_boot_service.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper {
    @Select("select * from `user`")
    List<User> userSelect(User user);
    @Select("select * from `user` where username = #{username}")
    User selectByUserName(String username);




}
